home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00b.txt
/
000122_icon-group-sender_Mon Oct 30 08:30:39 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9UFUVF25774
for icon-group-addresses; Mon, 30 Oct 2000 08:30:31 -0700 (MST)
Message-Id: <200010301530.e9UFUVF25774@baskerville.CS.Arizona.EDU>
From: Atle <trollet@skynet.be>
X-Newsgroups: comp.lang.icon
Subject: Re: Yet another Newbie question....
Date: Sat, 28 Oct 2000 18:03:26 +0200
X-Trace: news1.skynet.be 972748035 14352 195.238.29.161 (28 Oct 2000 15:47:15 GMT)
X-Complaints-To: abuse@skynet.be
X-Accept-Language: en
To: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1073
symbiot@my-deja.com wrote:
> Hi,
>
> And thanks in advance to all who have been helping me thru this
> learning curve of getting started in ICON.
>
> My present problem is trying to write a rountine that counts only
> letters in text and skips blanks, numbers, punctuation, etc.
>
> I tried....
>
> if member(&letters,line[index]) then totalcount +:= 1
>
> ...but for some unexplicable reason, it barfed on the very first
> character with
>
> set or table expected.
> Offending value &letters
>
> Isn't &letters a cset? You can use it in other "set" functions....can't
> you? What am I missing?
>
> Assistance appreciated!
I see you haven't been getting much feedback on this, so I will try again.
Unfortunately, as you see, I am no more bewandered in Icon than yourself, on the contrary, I am now working with Beta.
But when initializing, isn't is important to distinguish between ' and " - one is a cset the other a string?
I have no idea if this gets you anywhere, but since there doesn't seem to be many pros out there to help either of us right now ...
BW, Atle